package cn.iocoder.yudao.module.scrm.controller.admin.marketing.vo.visitor;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 营销访客数据分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MarketingVisitorPageReqVO extends PageParam {

    @Schema(description = "营销内容表id", example = "21028")
    private String contentId;

    @Schema(description = "转发表id", example = "7485")
    private String transmitId;

    @Schema(description = "访问来源0企微 1微信")
    private String source;

    @Schema(description = "来源类型保留", example = "1")
    private String sourceType;

    @Schema(description = "访客昵称", example = "李四")
    private String name;

    @Schema(description = "访客电话")
    private String phone;

    @Schema(description = "微信用户唯一 openId")
    private String openId;

    @Schema(description = "访客微信头像", example = "18792")
    //@NotNull(message = "微信头像不能为空")
    private String weChatAvatar;

    @Schema(description = "最后访问时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endLookTime;

    @Schema(description = "累计访问次数", example = "3441")
    private Integer allLookCount;

    @Schema(description = "累计访问时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] allLookTime;

    @Schema(description = "转发次数", example = "10760")
    private Integer shareCount;

    @Schema(description = "转发浏览人数", example = "32156")
    private Integer browseCount;

    @Schema(description = "转发浏览量", example = "8234")
    private Integer shareViewCount;

    @Schema(description = "负责人姓名（访客访问那一刻所属负责人）", example = "王五")
    private String principalName;

    @Schema(description = "链路保留id", example = "12734")
    private String linkId;

    @Schema(description = "保留状态", example = "2")
    private String status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    //负责人id==当前登陆人id  超级超级管理员查看所有
    private String creator;


}